package com.minhua.jijiehao2.mainframe.circle.entryActivity.impl

import com.minhua.jijiehao2.bean.BaseBean
import com.minhua.jijiehao2.bean.CompanyIdentifyBean
import com.minhua.jijiehao2.http.*
import com.minhua.jijiehao2.mainframe.circle.entryActivity.imp.IEntryModel

class EntryModel : IEntryModel {
    override fun getIdentifyStatus(map: ParamsMap, callBack: CallBack<CompanyIdentifyBean>) {
        HttpController<CompanyIdentifyBean>().doHttp(
                ApiClient.getInstance().api.getIdentityStatus(map.toRequestBody()),
                object :BaseSubscriber<CompanyIdentifyBean>(){
                    override fun dealData(t: BaseBean<CompanyIdentifyBean>) {
                        super.dealData(t)
                        callBack.onSuccess(t)
                    }
                }
        )
    }
}